package cn.gailvlun.gll.presentation.profile.bean;

import android.view.View;



public class ProfileViewModel {

    public ProfileViewModel(int order, String title, int icon, String visibility) {
        this.order = order;
        this.title = title;
        this.icon = icon;
        if ("visible".equals(visibility.toLowerCase())) {
            this.isVisible = true;
        } else if ("gone".equals(visibility.toLowerCase())) {
            this.isVisible = false;
        }
    }

    private int order;
    private String title;
    private int icon;
    private boolean isVisible;

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getIcon() {
        return icon;
    }

    public void setIcon(int icon) {
        this.icon = icon;
    }

    public boolean isVisible() {
        return isVisible;
    }

    public void setVisible(boolean visible) {
        isVisible = visible;
    }
}
